<template>
  {{bannerList}}
</template>

<script setup>
import { ref } from 'vue';  
import{getBanner} from '@/api/home.js'
import { counterStore } from '@/store/modules/counter.js'
import {onLoad} from '@dcloudio/uni-app'


// 获取轮播图数据
const bannerList=ref([]);
 const getBannerData = async()=>{
	try {
		const result=await	getBanner()
		bannerList.value = result.list
		console.log("请求到的数据",result)
	} catch (error) {
	}
}

onLoad(()=>{
	getBannerData()	
})

</script>

<style>

</style>
